package com.aspose.cells;

class zbss implements zaic {
   protected Color a;
   protected Color b;
   protected int c = 2;
   protected com.aspose.cells.b.a.b.zc d = null;
   protected boolean e = true;

   public void a(Color var1, Color var2, int var3) {
      this.a = var1;
      this.e = true;
      this.b = var2;
      this.c = var3;
   }

   public void a(com.aspose.cells.b.a.b.zc var1, Color var2, int var3) {
      this.d = var1;
      this.e = false;
      this.b = var2;
      this.c = var3;
   }

   public boolean a(zn var1, com.aspose.cells.b.a.b.zh var2, int var3, int var4, String var5, com.aspose.cells.b.a.b.zn var6, com.aspose.cells.b.a.b.zv var7) {
      com.aspose.cells.b.a.b.a.ze var8 = new com.aspose.cells.b.a.b.a.ze();
      var8.a(var5, var2, var3, (float)var4, var6, var7);
      com.aspose.cells.b.a.b.zm var9 = new com.aspose.cells.b.a.b.zm(this.b, (float)this.c);
      var9.e(2);
      var1.a(var9, var8);
      if (this.e) {
         com.aspose.cells.b.a.b.zu var10 = new com.aspose.cells.b.a.b.zu(this.a);
         var1.a((com.aspose.cells.b.a.b.zc)var10, (com.aspose.cells.b.a.b.a.ze)var8);
      } else {
         var1.a(this.d, var8);
      }

      return true;
   }

   public boolean a(zn var1, com.aspose.cells.b.a.b.zh var2, int var3, int var4, String var5, com.aspose.cells.b.a.b.zn var6, com.aspose.cells.b.a.b.zv var7, float[] var8, float[] var9) {
      com.aspose.cells.b.a.b.a.ze var10 = new com.aspose.cells.b.a.b.a.ze();
      var10.a(var5, var2, var3, (float)var4, var6, var7);
      var8[0] = (float)var6.a();
      var9[0] = (float)var6.b();
      boolean var11 = zabw.a(var1, var10, var8, var9);
      if (!var11) {
         return false;
      } else {
         float var12 = 0.0F;
         float var13 = 0.0F;
         float[] var14 = new float[]{var12};
         float[] var15 = new float[]{var13};
         var11 = zabw.a(var1, (float)this.c, 0.0F, var14, var15);
         var12 = var14[0];
         var13 = var15[0];
         if (!var11) {
            return false;
         } else {
            var8[0] += var12;
            var9[0] += var12;
            return true;
         }
      }
   }
}
